package com.oe.market.modules.ele.model.mapper;

import com.oe.market.modules.ele.model.bean.Cookie;
import com.oe.market.modules.ele.model.bean.CookieUseCount;
import com.oe.market.modules.ele.model.bean.RedPackage;
import com.oe.market.modules.ele.model.dto.EleRedPackageDto;
import com.oe.market.modules.ele.model.dto.EleRequestDto;
import com.oe.market.modules.ele.service.EleRequestService;

public class EleRequestMapper {
    protected Cookie cookie;


    public EleRequestMapper(Cookie cookie) {
        this.cookie = cookie;
    }
    public EleRequestMapper(EleRequestDto eleRequestDto) {
        this.cookie = new Cookie(null,
                eleRequestDto.cookie,
                eleRequestDto.body,
                null,
                EleRequestService.calcMD2(eleRequestDto.cookie));
    }

    public Cookie getCookie() {
        return cookie;
    }

    public EleRedPackageDto getEleRedPackageDto() {
        EleRedPackageDto redPackage = new EleRedPackageDto();

        return redPackage;
    }
}
